package com.pay.model.auto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 *
 * @author fuce
 * @email 87766867@qq.com
 * @date 2019-08-07 13:05:23
 */
public class OmniAddressExample {

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OmniAddressExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

            public Criteria andPropertyidIsNull() {
                addCriterion("propertyid is null");
                return (Criteria) this;
            }

            public Criteria andPropertyidIsNotNull() {
                addCriterion("propertyid is not null");
                return (Criteria) this;
            }

            public Criteria andPropertyidEqualTo(Long value) {
                addCriterion("propertyid =", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidNotEqualTo(Long value) {
                addCriterion("propertyid <>", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidGreaterThan(Long value) {
                addCriterion("propertyid >", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidGreaterThanOrEqualTo(Long value) {
                addCriterion("propertyid >=", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidLessThan(Long value) {
                addCriterion("propertyid <", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidLessThanOrEqualTo(Long value) {
                addCriterion("propertyid <=", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidLike(Long value) {
                addCriterion("propertyid like", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidNotLike(Long value) {
                addCriterion("propertyid not like", value, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidIn(List<Long> values) {
                addCriterion("propertyid in", values, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidNotIn(List<Long> values) {
                addCriterion("propertyid not in", values, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidBetween(Long value1, Long value2) {
                addCriterion("propertyid between", value1, value2, "propertyid");
                return (Criteria) this;
            }

            public Criteria andPropertyidNotBetween(Long value1, Long value2) {
                addCriterion("propertyid not between", value1, value2, "propertyid");
                return (Criteria) this;
            }


            public Criteria andAddressIsNull() {
                addCriterion("address is null");
                return (Criteria) this;
            }

            public Criteria andAddressIsNotNull() {
                addCriterion("address is not null");
                return (Criteria) this;
            }

            public Criteria andAddressEqualTo(String value) {
                addCriterion("address =", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressNotEqualTo(String value) {
                addCriterion("address <>", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressGreaterThan(String value) {
                addCriterion("address >", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressGreaterThanOrEqualTo(String value) {
                addCriterion("address >=", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressLessThan(String value) {
                addCriterion("address <", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressLessThanOrEqualTo(String value) {
                addCriterion("address <=", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressLike(String value) {
                addCriterion("address like", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressNotLike(String value) {
                addCriterion("address not like", value, "address");
                return (Criteria) this;
            }

            public Criteria andAddressIn(List<String> values) {
                addCriterion("address in", values, "address");
                return (Criteria) this;
            }

            public Criteria andAddressNotIn(List<String> values) {
                addCriterion("address not in", values, "address");
                return (Criteria) this;
            }

            public Criteria andAddressBetween(String value1, String value2) {
                addCriterion("address between", value1, value2, "address");
                return (Criteria) this;
            }

            public Criteria andAddressNotBetween(String value1, String value2) {
                addCriterion("address not between", value1, value2, "address");
                return (Criteria) this;
            }


            public Criteria andNameIsNull() {
                addCriterion("name is null");
                return (Criteria) this;
            }

            public Criteria andNameIsNotNull() {
                addCriterion("name is not null");
                return (Criteria) this;
            }

            public Criteria andNameEqualTo(String value) {
                addCriterion("name =", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameNotEqualTo(String value) {
                addCriterion("name <>", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameGreaterThan(String value) {
                addCriterion("name >", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameGreaterThanOrEqualTo(String value) {
                addCriterion("name >=", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameLessThan(String value) {
                addCriterion("name <", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameLessThanOrEqualTo(String value) {
                addCriterion("name <=", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameLike(String value) {
                addCriterion("name like", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameNotLike(String value) {
                addCriterion("name not like", value, "name");
                return (Criteria) this;
            }

            public Criteria andNameIn(List<String> values) {
                addCriterion("name in", values, "name");
                return (Criteria) this;
            }

            public Criteria andNameNotIn(List<String> values) {
                addCriterion("name not in", values, "name");
                return (Criteria) this;
            }

            public Criteria andNameBetween(String value1, String value2) {
                addCriterion("name between", value1, value2, "name");
                return (Criteria) this;
            }

            public Criteria andNameNotBetween(String value1, String value2) {
                addCriterion("name not between", value1, value2, "name");
                return (Criteria) this;
            }


            public Criteria andBalanceIsNull() {
                addCriterion("balance is null");
                return (Criteria) this;
            }

            public Criteria andBalanceIsNotNull() {
                addCriterion("balance is not null");
                return (Criteria) this;
            }

            public Criteria andBalanceEqualTo(BigDecimal value) {
                addCriterion("balance =", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceNotEqualTo(BigDecimal value) {
                addCriterion("balance <>", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceGreaterThan(BigDecimal value) {
                addCriterion("balance >", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceGreaterThanOrEqualTo(BigDecimal value) {
                addCriterion("balance >=", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceLessThan(BigDecimal value) {
                addCriterion("balance <", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceLessThanOrEqualTo(BigDecimal value) {
                addCriterion("balance <=", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceLike(BigDecimal value) {
                addCriterion("balance like", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceNotLike(BigDecimal value) {
                addCriterion("balance not like", value, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceIn(List<BigDecimal> values) {
                addCriterion("balance in", values, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceNotIn(List<BigDecimal> values) {
                addCriterion("balance not in", values, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("balance between", value1, value2, "balance");
                return (Criteria) this;
            }

            public Criteria andBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("balance not between", value1, value2, "balance");
                return (Criteria) this;
            }


            public Criteria andFrozenIsNull() {
                addCriterion("frozen is null");
                return (Criteria) this;
            }

            public Criteria andFrozenIsNotNull() {
                addCriterion("frozen is not null");
                return (Criteria) this;
            }

            public Criteria andFrozenEqualTo(BigDecimal value) {
                addCriterion("frozen =", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenNotEqualTo(BigDecimal value) {
                addCriterion("frozen <>", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenGreaterThan(BigDecimal value) {
                addCriterion("frozen >", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenGreaterThanOrEqualTo(BigDecimal value) {
                addCriterion("frozen >=", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenLessThan(BigDecimal value) {
                addCriterion("frozen <", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenLessThanOrEqualTo(BigDecimal value) {
                addCriterion("frozen <=", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenLike(BigDecimal value) {
                addCriterion("frozen like", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenNotLike(BigDecimal value) {
                addCriterion("frozen not like", value, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenIn(List<BigDecimal> values) {
                addCriterion("frozen in", values, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenNotIn(List<BigDecimal> values) {
                addCriterion("frozen not in", values, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("frozen between", value1, value2, "frozen");
                return (Criteria) this;
            }

            public Criteria andFrozenNotBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("frozen not between", value1, value2, "frozen");
                return (Criteria) this;
            }


            public Criteria andReservedIsNull() {
                addCriterion("reserved is null");
                return (Criteria) this;
            }

            public Criteria andReservedIsNotNull() {
                addCriterion("reserved is not null");
                return (Criteria) this;
            }

            public Criteria andReservedEqualTo(BigDecimal value) {
                addCriterion("reserved =", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedNotEqualTo(BigDecimal value) {
                addCriterion("reserved <>", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedGreaterThan(BigDecimal value) {
                addCriterion("reserved >", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedGreaterThanOrEqualTo(BigDecimal value) {
                addCriterion("reserved >=", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedLessThan(BigDecimal value) {
                addCriterion("reserved <", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedLessThanOrEqualTo(BigDecimal value) {
                addCriterion("reserved <=", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedLike(BigDecimal value) {
                addCriterion("reserved like", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedNotLike(BigDecimal value) {
                addCriterion("reserved not like", value, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedIn(List<BigDecimal> values) {
                addCriterion("reserved in", values, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedNotIn(List<BigDecimal> values) {
                addCriterion("reserved not in", values, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("reserved between", value1, value2, "reserved");
                return (Criteria) this;
            }

            public Criteria andReservedNotBetween(BigDecimal value1, BigDecimal value2) {
                addCriterion("reserved not between", value1, value2, "reserved");
                return (Criteria) this;
            }


            public Criteria andUpdatedateIsNull() {
                addCriterion("updatedate is null");
                return (Criteria) this;
            }

            public Criteria andUpdatedateIsNotNull() {
                addCriterion("updatedate is not null");
                return (Criteria) this;
            }

            public Criteria andUpdatedateEqualTo(Date value) {
                addCriterion("updatedate =", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateNotEqualTo(Date value) {
                addCriterion("updatedate <>", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateGreaterThan(Date value) {
                addCriterion("updatedate >", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateGreaterThanOrEqualTo(Date value) {
                addCriterion("updatedate >=", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateLessThan(Date value) {
                addCriterion("updatedate <", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateLessThanOrEqualTo(Date value) {
                addCriterion("updatedate <=", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateLike(Date value) {
                addCriterion("updatedate like", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateNotLike(Date value) {
                addCriterion("updatedate not like", value, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateIn(List<Date> values) {
                addCriterion("updatedate in", values, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateNotIn(List<Date> values) {
                addCriterion("updatedate not in", values, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateBetween(Date value1, Date value2) {
                addCriterion("updatedate between", value1, value2, "updatedate");
                return (Criteria) this;
            }

            public Criteria andUpdatedateNotBetween(Date value1, Date value2) {
                addCriterion("updatedate not between", value1, value2, "updatedate");
                return (Criteria) this;
            }


    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
